package com.sdy.kzyy.biz.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author: 王越洋
 * @version: v1.0
 * @description: com.sdy.kzyy.biz.dto
 * @date:2020/3/25
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "获取口罩预约情况")
@ColumnWidth(20)
public class BookingSituationDTO {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @ExcelIgnore
    private Integer id;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @ExcelProperty(value = "姓名", index = 0)
    private String userName;

    /**
     * 性别
     */

    @ApiModelProperty(value = "性别")
    @ExcelIgnore
    private Integer xb;

    /**
     * 年龄
     */
    @ApiModelProperty(value = "年龄")
    @ExcelIgnore
    private String age;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    @ExcelProperty(value = "手机号码", index = 1)
    private String phone;

    /**
     * 身份证
     */
    @ApiModelProperty(value = "身份证号")
    @ExcelProperty(value = "身份证号", index = 2)
    private String orderCard;

    /**
     * 订单状态 1-失效，2-有效
     */
    @ApiModelProperty(value = "订单状态 1-失效，2-有效")
    @ExcelIgnore
    private Integer orderStatus;

    /**
     * 预约状态 1-未领取，2-已领取 3-已失效
     */
    @ApiModelProperty(value = "预约状态 1-未领取，2-已领取, 3-已失效")
    @ExcelIgnore
    private Integer receiveStatus;

    @ApiModelProperty(value = "预约状态 1-未领取，2-已领取, 3-已失效")
    @ExcelProperty(value = "预约状态", index = 3)
    private String receiveStatu;

    /**
     * 下单时间
     */
    @ApiModelProperty(value = "申请时间")
    @ExcelProperty(value = "申请时间", index = 4)
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date orderTime;

    /**
     * 药店名
     */
    @ApiModelProperty(value = "网店名称")
    @ExcelProperty(value = "网店名称", index = 5)
    private String storeName;

    /**
     * 地区名称
     */
    @ApiModelProperty(value = "地区名称")
    @ExcelIgnore
    private String areaName;

    /**
     * 药店详细地址
     */
    @ApiModelProperty(value = "网店地址")
    @ExcelProperty(value = "网店地址", index = 6)
    private String address;

    /**
     * 领取时间
     */
    @ApiModelProperty(value = "取货时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    @ExcelProperty(value = "取货时间", index = 7)
    private Date receiveTime;

    /**
     * 权限状态
     */
    @ApiModelProperty(value = "权限状态")
    @ExcelIgnore
    private Integer state;


}
